package com.njtoyo.taxi.admin.rest.wrapper.local_service.commodity;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeMerchantCommodityState;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
public class CommodityPageWrapper extends Page<CommodityPageWrapper> {

    public CommodityPageWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商家名称")
    private String merchantName;

    @ApiModelProperty(value = "商品类型ID")
    private Long commodityCategoryId;

    @ApiModelProperty(value = "商品状态 0:waiting_for_review[待审核],1:review_failed[审核未通过],2:review_approved[审核已通过(未上架)],3:on_shelf[已上架],4:freeze_up[冻结]")
    private LifeMerchantCommodityState state;
}
